
// DrawDotMatrixDoc.h : interface of the CDrawDotMatrixDoc class
//


#pragma once

#include "miniview.h"

class CDrawDotMatrixDoc : public CDocument
{
protected: // create from serialization only
	CDrawDotMatrixDoc();
	DECLARE_DYNCREATE(CDrawDotMatrixDoc)

// Attributes
public:
	BYTE* m_pImg;
	BYTE* m_pImg1;
	BYTE* m_pImg2;
	BYTE* m_pImg3;
	BYTE* m_pImg4;

	int m_nWidth, m_nHeight, m_nSize;
// Operations
public:
	CFrameWnd* CreateNewView(CRuntimeClass* pViewClass);
	CMiniView* m_pMiniView1;
	CMiniView* m_pMiniView2;
	CMiniView* m_pMiniView3;
	CMiniView* m_pMiniView4;
// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	void GenerateImage();
#ifdef SHARED_HANDLERS
	virtual void InitializeSearchContent();
	virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds);
#endif // SHARED_HANDLERS

// Implementation
public:
	virtual ~CDrawDotMatrixDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()

#ifdef SHARED_HANDLERS
	// Helper function that sets search content for a Search Handler
	void SetSearchContent(const CString& value);
#endif // SHARED_HANDLERS
};
